package com.android.equipment.dao;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

@Entity
public class ConfigModel {
    @Id
    private long id;
    private long device_model;
    private String node;
    private String node_des;
    private String uni;
    private int sort = 0;
    private String relation_node = "";
    private int is_show = 0;
    private int is_bool = 0;
    private String false_val = "正常";
    private String true_val = "报警";
    private int is_decimal = 0;

    public ConfigModel(long id, long device_model, String node, String node_des, String uni, int sort, String relation_node, int is_show, int is_bool, String false_val, String true_val, int is_decimal) {
        this.id = id;
        this.device_model = device_model;
        this.node = node;
        this.node_des = node_des;
        this.uni = uni;
        this.sort = sort;
        this.relation_node = relation_node;
        this.is_show = is_show;
        this.is_bool = is_bool;
        this.false_val = false_val;
        this.true_val = true_val;
        this.is_decimal = is_decimal;
    }

    public ConfigModel() {
    }

    public ConfigModel(long device_model, String node, String node_des, String uni, String relation_node, int is_bool, int is_decimal) {
        this.device_model = device_model;
        this.node = node;
        this.node_des = node_des;
        this.uni = uni;
        this.relation_node = relation_node;
        this.is_bool = is_bool;
        this.is_decimal = is_decimal;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getDevice_model() {
        return device_model;
    }

    public void setDevice_model(long device_model) {
        this.device_model = device_model;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getNode_des() {
        return node_des;
    }

    public void setNode_des(String node_des) {
        this.node_des = node_des;
    }

    public String getUni() {
        return uni;
    }

    public void setUni(String uni) {
        this.uni = uni;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getRelation_node() {
        return relation_node;
    }

    public void setRelation_node(String relation_node) {
        this.relation_node = relation_node;
    }

    public int getIs_show() {
        return is_show;
    }

    public void setIs_show(int is_show) {
        this.is_show = is_show;
    }

    public int getIs_bool() {
        return is_bool;
    }

    public void setIs_bool(int is_bool) {
        this.is_bool = is_bool;
    }

    public String getFalse_val() {
        return false_val;
    }

    public void setFalse_val(String false_val) {
        this.false_val = false_val;
    }

    public String getTrue_val() {
        return true_val;
    }

    public void setTrue_val(String true_val) {
        this.true_val = true_val;
    }

    public int getIs_decimal() {
        return is_decimal;
    }

    public void setIs_decimal(int is_decimal) {
        this.is_decimal = is_decimal;
    }
}
